<!--
 * @Description: 事件
 * @Author: rendc
 * @Date: 2022-09-05 15:12:30
 * @LastEditors: rendc
 * @LastEditTime: 2022-09-06 09:29:26
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>事件</title>
</head>

<body>
  <input type="button" value="按钮" onmousedown="test(event)" onmousemove="move(event)">
</body>
<script>
  function move(e) {
    console.log('🤡 CC - move - e', e)
  }

  function test(e) {
    // console.log('🤡 CC - test - e', e)
    // console.log(e.button);
    // 0 左键点击
    // 1 中键点击
    // 2 右键点击
  }
</script>

</html>